package com.kgc.ebook.service;

import com.github.pagehelper.PageInfo;
import com.kgc.ebook.pojo.Category;
import com.kgc.ebook.pojo.Entry;

import java.util.List;

public interface EntryService {

    //分页查询
    PageInfo<Entry> selectAll(Integer pageNum,Integer categoryid);
    //查询category
    public List<Category> selectAllCategory();
    //添加
    public Integer saveEntry(Entry entry);
    //删除
    public Integer  deleteEntry(Integer id);
    //根基id查询
    public Entry selectAllByEntry(Integer id);
    //修改
    public Integer  updateEntry(Entry entry);



}
